load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
    name = "sqltelemetry",
    srcs = [
        "diagnostics.go",
        "doc.go",
        "drop_owned_by.go",
        "enum.go",
        "exec.go",
        "extension.go",
        "feature_flags.go",
        "follower_reads.go",
        "function.go",
        "iam.go",
        "isolation.go",
        "multiregion.go",
        "partitioning.go",
        "pgwire.go",
        "planning.go",
        "reassign_owned_by.go",
        "report.go",
        "scalar.go",
        "scheduled_backups.go",
        "schema.go",
        "session.go",
        "show.go",
        "ttl.go",
        "user_defined_schema.go",
        "virtual_schema.go",
    ],
    importpath = "github.com/cockroachdb/cockroach/pkg/sql/sqltelemetry",
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/kv/kvserver/concurrency/isolation",
        "//pkg/server/telemetry",
        "//pkg/settings",
        "//pkg/sql/pgwire/pgcode",
        "//pkg/sql/pgwire/pgerror",
        "//pkg/sql/sem/builtins/builtinsregistry",
        "//pkg/sql/sem/tree",
        "//pkg/util/log",
        "//pkg/util/log/logcrash",
        "@com_github_cockroachdb_errors//:errors",
    ],
)
